package com.tsing.cloud.controller;

import com.tsing.cloud.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author TheTsing
 * @version 1.0
 * @date 2021/11/8 14:11
 */
@RestController
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping("/get/{id}")
    public List<Object> get(@PathVariable("id") String id) {
        return orderService.get(id);
    }

    @GetMapping("/timeout")
    public String timeout() {
        return orderService.timeout();
    }

}
